package org.goodsence.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author zty
 * @apiNote
 * @project_name the-revolt
 * @user tain
 * @create_at 2023/6/14 19:05
 * @create_vio IntelliJ IDEA
 */
//因为MODERN_ARRANGED_MARRIAGE有context-path 必须加上path 不然404.
    //fallback是ModernArrangedMarriageApi 的实现类。以@Compponent修饰。
@FeignClient(name = ServerName.MODERN_ARRANGED_MARRIAGE, fallback = ModernArrangedMarriageApiFallback.class)
public interface ModernArrangedMarriageApi {

    @GetMapping("/test")
    String test();
}
